#include "SDL.h"
#include "utils.h"

int procesar_eventos(void)
{
	static SDL_Event event;

	while (SDL_PollEvent(&event)) 
	{
		if (event.type == SDL_QUIT)
			return 0;

		if (event.type == SDL_KEYDOWN)
			if (event.key.keysym.sym == SDLK_ESCAPE)
				return 0;
	}

	return 1;
}

void imprimir_rectangulo (SDL_Surface *screen, SDL_Rect * rect)
{
	Uint32 color = SDL_MapRGB (screen->format, 200, 200, 200);
	SDL_FillRect (screen, rect, color);
}